package com.ec.edu.common;

import com.ec.edu.common.hello.HelloNettyClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@Slf4j
@SpringBootApplication
@ComponentScan(basePackages = "com.ec.edu")
public class NettyClientApplication {

    public static void main(String[] args) {
        SpringApplication.run(NettyClientApplication.class, args);
        try {
            HelloNettyClient.start("1");
        } catch (InterruptedException e) {
            log.error("异常：", e);
        }
    }

}
